﻿@using QDT.Common
@model IPagedList<QDT.Core.Projects.ProjectType>
           
<div class="main_title">
    贷款分类列表</div>
<div class="blank5">
</div>
<div class="button_row">
    @Html.ActionLink("新增", "AddType", new { }, new { @class = "button" })
    <a class="button" href="javascript: del()">删除</a>
</div>
<div class="blank5">
</div>
<div class="grid_box">
    <div class="grid_top">
    </div>
    @Html.Grid(Model).Columns(column =>
                                  {
                                      column.CheckBox(x => x.ID);
                                      column.For(x => x.ID).Named("编号").HeaderAttributes(style => "width:50px;");
                                      column.For(x => Html.ActionLink(x.Name, "EditType", new { id = x.ID })).Named("名称").SortColumnName("Name");
                                      column.For(x => x.IsEffect ? "有效" : "无效").Named("状态").SortColumnName("IsEffect");
                                      column.For(x => x.Sort).Named("排序").SortColumnName("Sort"); ;
                                      column.Buttons(btns => btns.Add(x => Html.ActionLink("编辑", "EditType", new {id = x.ID}))
                                                                 .Add(x => Html.ScriptLink("删除", "del({0})".FormatWith(x.ID)))
                                                                 .Add(x => Html.ActionLink("字段配置", "FeildList", new { cid = x.ID }))
                                                                 
                                          );
                                  }).Complex(ViewData)
    <div class="grid_foot">
    </div>
</div>
<div class="blank5">
</div>
@Html.Pager(Model)
